import Vue from 'vue'
import VueRouter from 'vue-router'
import pageA from './pages/a'
import pageB from './pages/b'

Vue.use(VueRouter)

const routes = [
	{
		path: '/pagea',
		component: pageA,
	},{
		path: '/pageb',
		component: pageB
	}
]
// 以上只是关联到页面
const router = new VueRouter({
	routes
})
// 实例化一个router的路径

export default router
// 只是路由的配置部分,还需在main.js中关联